/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ADPCompliance.Impl;

/**
 *
 * @author Leo
 */
public class Triangle extends RectangleImpl {
    
  
   private int height;

   
   public Triangle(){}
    
  
    public void setlength(int lngth) {
    this.length =lngth;
    }
    
    public int getlength() {
       return this.length;
    }

    public void setbreadth(int b) {
        this.breadth = b;
    }

   public int getbreadth() {
        return this.breadth;
    }
    
    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
    
    public int area(int l, int b,int h) {
      
        area= l * b* h;
        return area;
    }
}